package com.greenlife.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.greenlife.commom.PageInfo;
import com.greenlife.model.User;

public interface UserMapper {
	int deleteByPrimaryKey(User user);

	int insertSelective(User user);

	User selectByPrimaryKey(User user);

	User selectByUser(User user);

	int updateByPrimaryKeySelective(User user);
	
	/*分页*/
	List<User> selectUserByPage(@Param(value = "user")User user,@Param(value = "pageInfo")PageInfo pageInfo);
	
  	int selectUserCount(@Param(value = "user")User user);

}